package com.tgy.service;

import com.tgy.dao.DeptDao;
import com.tgy.entity.Dept;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/***
 * @ClassName: DeptServiceImpl
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 20:54 2022/1/10
 * @version : V1.0
 */
@Repository
public class DeptServiceImpl implements DeptService{
    @Resource
    DeptDao deptDao;

    @Override
    public Boolean addDept(Dept dept) {
        Integer add = 0;
        Boolean b = false;
        try {
            add = deptDao.add(dept);
        } catch (Exception e) {
            e.printStackTrace();
        }
        if ((add >= 0)) {
            b = true;
        }

        return b;
    }
}
